<?
$stat = $this->statistics;


?>
<table>
    <td>Photo</td>
    <td>Title</td>
    <td>Answer</td>
    <td>Price</td>
    <td>Buy count</td>
    <td></td>
    <?
    foreach ($stat as $one_map):

        ;

        ?>
        <tr>
            <td>
                <img width="100px" src="<?=$one_map[0]['map']['url']?>" alt="image">
            </td>

            <td>
                <?=$one_map[0]['map']['title']?>
            </td>
            <td>
                <?=$one_map[0]['map']['answer']?>
            </td>


            <td>
                <?=$one_map[0]['map']['price']?>
            </td>

            <td>
                <a href="<?=$this->Url(array("id"=>$one_map[0]['map']['id']), "info")?>"> <?=$one_map[1]?></a>
            </td>

            <td>
                <a href="/answers/<?= $one_map[0]['map']['id'] ?>">View answers</a>
            </td>

        </tr>


        <?
    endforeach;
    ?>

</table>